<template>
  <div>
    <h1 @click="handle">Home-React</h1>
    <h1 @click="handle2">Home-Vue</h1>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'
const router = useRouter()

const handle = () => {
  router.push('/react')
}
const handle2 = () => {
  router.push('/vue')
}
</script>
